package com.example.demo.domin.repository;

import com.example.demo.domin.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by kaizige on 2017/7/10.
 */
public interface UserRepository extends JpaRepository<User,Long> {
    public List<User> findByNameIsNotNull();
    public List<User> findByDepartMentIsNotNull();
}
